import service from "../request/index";

export const CommentService =()=>{
    return service({
        method:'GET',
        url:'/movie/comment/',
    })
}

export const submitCommentService = (id,content) =>{
    return service({
        method:'POST',
        url:'/movie/comment/',
        data:{
            author:id,
            content:content
        }
    })
}

export const ReplyCommentService = (commentId,commentsId,replyId,inputComment) =>{
    return service({
        method:'POST',
        url:'/movie/reply/',
        data:{
            reply_author:commentId,
            comments:commentsId,
            parent_author:replyId,
            reply_content:inputComment
        }
    })
}
